package com.example.myspringtest;

import com.example.myspringtest.utils.ContextUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext;
import org.springframework.cglib.core.DebuggingClassWriter;

@SpringBootApplication
public class MySpringTestApplication {
    static {
        System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "D:\\test1");
    }

    public static void main(String[] args) {
        AnnotationConfigServletWebServerApplicationContext context = (AnnotationConfigServletWebServerApplicationContext) SpringApplication.run(MySpringTestApplication.class, args);
        ContextUtils.setContext(context);
    }

}
